package com.wolfheader.wolfgame.entity.admin;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wolfheader.wolfgame.entity.BaseEntity;

@Entity
@Table(name = "t_game")
public class GameEntity extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 350004206644927010L;

	/**
	 * 游戏名称
	 */
	private String name;

	/**
	 * 搜索关键词
	 */
	private String searchKey;

	/**
	 * 游戏备注
	 */
	private String remark;

	/**
	 * 游戏开始时间
	 */
	private Date startDate = new Date();

	/**
	 * 游戏结束时间
	 */
	private Date endDate;

	/**
	 * 是否使用自己工总号
	 */
	private boolean weixinFlag = true;

	/**
	 * 客户微信号
	 */
	private String weiXinAccount;

	/**
	 * 客户微信号密码
	 */
	private String weiXinPassword;

	/**
	 * 游戏地址
	 */
	private String gamePath;

	/**
	 * 最大助力次数
	 */
	private Integer maxAssCount;

	/**
	 * 游戏图片地址
	 */
	private String imagePath;

	/**
	 * 每周是否清0。 0则不清理
	 */
	private Integer clearDate = 0;

	/**
	 * 最高分数0。 0则不限制
	 */
	private Integer maxScore = 0;

	/**
	 * 是否记录日排行
	 */
	private boolean dateRank = false;

	/**
	 * 点击量
	 */
	private Integer openCount = 0;

	/**
	 * 发布人
	 */
	private String adminName;

	public Integer getOpenCount() {
		return openCount;
	}

	public void setOpenCount(Integer openCount) {
		this.openCount = openCount;
	}

	public String getAdminName() {
		return adminName;
	}

	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}

	@Column(nullable = false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSearchKey() {
		return searchKey;
	}

	public void setSearchKey(String searchKey) {
		this.searchKey = searchKey;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public boolean isWeixinFlag() {
		return weixinFlag;
	}

	public void setWeixinFlag(boolean weixinFlag) {
		this.weixinFlag = weixinFlag;
	}

	public String getWeiXinAccount() {
		return weiXinAccount;
	}

	public void setWeiXinAccount(String weiXinAccount) {
		this.weiXinAccount = weiXinAccount;
	}

	public String getWeiXinPassword() {
		return weiXinPassword;
	}

	public void setWeiXinPassword(String weiXinPassword) {
		this.weiXinPassword = weiXinPassword;
	}

	public String getGamePath() {
		return gamePath;
	}

	public void setGamePath(String gamePath) {
		this.gamePath = gamePath;
	}

	public Integer getMaxAssCount() {
		return maxAssCount;
	}

	public void setMaxAssCount(Integer maxAssCount) {
		this.maxAssCount = maxAssCount;
	}

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public Integer getClearDate() {
		return clearDate;
	}

	public void setClearDate(Integer clearDate) {
		this.clearDate = clearDate;
	}

	public Integer getMaxScore() {
		return maxScore;
	}

	public void setMaxScore(Integer maxScore) {
		this.maxScore = maxScore;
	}

	public boolean isDateRank() {
		return dateRank;
	}

	public void setDateRank(boolean dateRank) {
		this.dateRank = dateRank;
	}

}
